﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MMDemo
{
    class NewQueueData:InterfaceNewData
    {
        public bool NewData()
        {
            switch (GlobalQueue.operateType)
            {
                case QueueOperateType.YangHui:
                    InitQueueOrder(); break;
            }
            return PublicDataClass.IsInit;
        }
        /// <summary>
        /// 杨辉三角
        /// </summary>
        private void InitQueueOrder()
        {
            QueueYangHForm nqf = new QueueYangHForm();
            nqf.ShowDialog();
        }
        public void ShowForm(SysDemoForm demof, SysArithmeticForm arif, int Width, int Height)
        {
            demof.Top = 0;
            demof.Left = 0;
            demof.Width = Width / 2;
            demof.Height = Height;
            demof.Show();



            arif.Top = 0;
            arif.Left = Width / 2;
            arif.Width = Width / 2;
            arif.Height = Height;
            arif.Show();
        }
    }
}
